package com.wwdx.controller.rest;

import com.wwdx.controller.base.BaseWxPayController;
import com.wwdx.service.impl.BaseWxPayService;
import com.wwdx.service.impl.MiDuWxMaPayService;
import com.wwdx.utils.ConstantHolder;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

import javax.annotation.Resource;

/**
 * @author liguoliang
 * @date 2018/4/20 12:08
 */
@RestController
@RequestMapping("miduwxmapay")
@ApiIgnore
public class MdWxMaPayController extends BaseWxPayController {

    @Resource
    private MiDuWxMaPayService miDuWxMaPayService;

    @Override
    public BaseWxPayService getPayService() {
        return this.miDuWxMaPayService;
    }

    @Override
    public String getPayName() {
        return "miduwxmapay";
    }

    @Override
    protected Integer getPayType() {
        return ConstantHolder.Constant.WECHAT_MA_PAYTYPE;
    }
}